﻿@using YawetagDemo.WebUI.Startup;
@{
    ViewBag.Title = "Doing CRUD Operations...";
}
<h2>
    <label>@(ConfigurationSet.IS_IN_PROCESS_WORK ? "In-Process" : "Inter-Process")</label>
    CRUD Operations
</h2>
<div>
    <h3>
        [...] Creating entities
    </h3>
    <p>
        <span>Creating new Artists and Albums</span>
    </p>
    <h3>
        [...] DCD's top 3
    </h3>
    <p>
        @foreach (var i in ViewBag.Top3DCDAlbumRankingItems)
        {
            <span>@i.BandName - @i.Name - Released: @i.ReleaseDate - Stars: @i.Stars</span><br />
        }
    </p>
    <h3>
        [...] Updating entities
    </h3>
    <p>
        <span>Updating just created Artists and Albums</span>
    </p>
    <h3>
        [...] DCD's top 3 once again
    </h3>
    <p>
        @foreach (var i in ViewBag.Top3DCDAgainAlbumRankingItems)
        {
            <span>@i.BandName - @i.Name - Released: @i.ReleaseDate - Stars: @i.Stars</span><br />
        }
    </p>
    <h3>
        [...] Lisa and Brendan
    </h3>
    <p>
        @foreach (var i in ViewBag.LisaAndBrendanArtists)
        {
            <span>@i.Name - Age: @i.Age - Bands: @i.Bands</span><br />
        }
    </p>
    <h3>
        [...] Deleting entities
    </h3>
    <p>
        <span>Deleting previously created Artists and Albums</span>
    </p>
</div>
<div>
    <p id="back-button">
        <a href="@Url.RouteUrl("do-work", ConfigurationSet.IS_IN_PROCESS_WORK ? new { inprocess = true } : null)">
            Back</a>
    </p>
</div>
